package com.cheng.mybatis02.service;

import com.cheng.mybatis02.entity.User;

import java.util.Map;

public interface UserService {
    User findUserById(int id);

    User login(String username,String password);

    User findUserByIdAndUsername(Map<String,String> params);

    int addUser(User user);

    int removeUser(int id ,String username);
}
